<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>

</head>

<body>
    <div id="app">
        <!-- 激活图片 -->
        <img autofocus tabindex="0" @keydown.right="x+=10" @keydown.left="x-=10" @keydown.up="y-=10"
            @keydown.down="y+=10" :style="{translate:`${x}px ${y}px`}"
            src="https://ts2.cn.mm.bing.net/th?id=ODL.85fa5be3cbe4f9c3287857679c22bb79&w=186&h=300&c=10&rs=1&qlt=99&bgcl=fffffe&r=0&o=6&pid=WrapstarImage"
            alt="">




    </div>



    <script src=" vue.js"></script>
    <script>
        new Vue({
            el: "#app",
            data: {
                x: 0,
                y: 0


            },
            methods: {
                fn() {

                }

            }


        });
    </script>
</body>

</html>